Optimal. Leaf size=244 \[ -\frac{7 \sqrt [6]{b} \log \left (-\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{a}+\sqrt [3]{b} x^2\right )}{24 \sqrt{3} a^{13/6}}+\frac{7 \sqrt [6]{b} \log \left (\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{a}+\sqrt [3]{b} x^2\right )}{24 \sqrt{3} a^{13/6}}-\frac{7 \sqrt [6]{b} \tan ^{-1}\left (\frac{\sqrt [6]{b} x}{\sqrt [6]{a}}\right )}{18 a^{13/6}}+\frac{7 \sqrt [6]{b} \tan ^{-1}\left (\frac{\sqrt{3} \sqrt [6]{a}-2 \sqrt [6]{b} x}{\sqrt [6]{a}}\right )}{36 a^{13/6}}-\frac{7 \sqrt [6]{b} \tan ^{-1}\left (\frac{\sqrt{3} \sqrt [6]{a}+2 \sqrt [6]{b} x}{\sqrt [6]{a}}\right )}{36 a^{13/6}}-\frac{7}{6 a^2 x}+\frac{1}{6 a x \left (a+b x^6\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.497762, antiderivative size = 244, normalized size of antiderivative = 1., number of steps used = 12, number of rules used = 8, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.615, Rules used = {290, 325, 295, 634, 618, 204, 628, 205} \[ -\frac{7 \sqrt [6]{b} \log \left (-\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{a}+\sqrt [3]{b} x^2\right )}{24 \sqrt{3} a^{13/6}}+\frac{7 \sqrt [6]{b} \log \left (\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{a}+\sqrt [3]{b} x^2\right )}{24 \sqrt{3} a^{13/6}}-\frac{7 \sqrt [6]{b} \tan ^{-1}\left (\frac{\sqrt [6]{b} x}{\sqrt [6]{a}}\right )}{18 a^{13/6}}+\frac{7 \sqrt [6]{b} \tan ^{-1}\left (\frac{\sqrt{3} \sqrt [6]{a}-2 \sqrt [6]{b} x}{\sqrt [6]{a}}\right )}{36 a^{13/6}}-\frac{7 \sqrt [6]{b} \tan ^{-1}\left (\frac{\sqrt{3} \sqrt [6]{a}+2 \sqrt [6]{b} x}{\sqrt [6]{a}}\right )}{36 a^{13/6}}-\frac{7}{6 a^2 x}+\frac{1}{6 a x \left (a+b x^6\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 290
Rule 325
Rule 295
Rule 634
Rule 618
Rule 204
Rule 628
Rule 205
Rubi steps
\begin{align*} \int \frac{1}{x^2 \left (a+b x^6\right )^2} \, dx &=\frac{1}{6 a x \left (a+b x^6\right )}+\frac{7 \int \frac{1}{x^2 \left (a+b x^6\right )} \, dx}{6 a}\\ &=-\frac{7}{6 a^2 x}+\frac{1}{6 a x \left (a+b x^6\right )}-\frac{(7 b) \int \frac{x^4}{a+b x^6} \, dx}{6 a^2}\\ &=-\frac{7}{6 a^2 x}+\frac{1}{6 a x \left (a+b x^6\right )}-\frac{\left (7 \sqrt [3]{b}\right ) \int \frac{-\frac{\sqrt [6]{a}}{2}+\frac{1}{2} \sqrt{3} \sqrt [6]{b} x}{\sqrt [3]{a}-\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{b} x^2} \, dx}{18 a^{13/6}}-\frac{\left (7 \sqrt [3]{b}\right ) \int \frac{-\frac{\sqrt [6]{a}}{2}-\frac{1}{2} \sqrt{3} \sqrt [6]{b} x}{\sqrt [3]{a}+\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{b} x^2} \, dx}{18 a^{13/6}}-\frac{\left (7 \sqrt [3]{b}\right ) \int \frac{1}{\sqrt [3]{a}+\sqrt [3]{b} x^2} \, dx}{18 a^2}\\ &=-\frac{7}{6 a^2 x}+\frac{1}{6 a x \left (a+b x^6\right )}-\frac{7 \sqrt [6]{b} \tan ^{-1}\left (\frac{\sqrt [6]{b} x}{\sqrt [6]{a}}\right )}{18 a^{13/6}}-\frac{\left (7 \sqrt [6]{b}\right ) \int \frac{-\sqrt{3} \sqrt [6]{a} \sqrt [6]{b}+2 \sqrt [3]{b} x}{\sqrt [3]{a}-\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{b} x^2} \, dx}{24 \sqrt{3} a^{13/6}}+\frac{\left (7 \sqrt [6]{b}\right ) \int \frac{\sqrt{3} \sqrt [6]{a} \sqrt [6]{b}+2 \sqrt [3]{b} x}{\sqrt [3]{a}+\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{b} x^2} \, dx}{24 \sqrt{3} a^{13/6}}-\frac{\left (7 \sqrt [3]{b}\right ) \int \frac{1}{\sqrt [3]{a}-\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{b} x^2} \, dx}{72 a^2}-\frac{\left (7 \sqrt [3]{b}\right ) \int \frac{1}{\sqrt [3]{a}+\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{b} x^2} \, dx}{72 a^2}\\ &=-\frac{7}{6 a^2 x}+\frac{1}{6 a x \left (a+b x^6\right )}-\frac{7 \sqrt [6]{b} \tan ^{-1}\left (\frac{\sqrt [6]{b} x}{\sqrt [6]{a}}\right )}{18 a^{13/6}}-\frac{7 \sqrt [6]{b} \log \left (\sqrt [3]{a}-\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{b} x^2\right )}{24 \sqrt{3} a^{13/6}}+\frac{7 \sqrt [6]{b} \log \left (\sqrt [3]{a}+\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{b} x^2\right )}{24 \sqrt{3} a^{13/6}}-\frac{\left (7 \sqrt [6]{b}\right ) \operatorname{Subst}\left (\int \frac{1}{-\frac{1}{3}-x^2} \, dx,x,1-\frac{2 \sqrt [6]{b} x}{\sqrt{3} \sqrt [6]{a}}\right )}{36 \sqrt{3} a^{13/6}}+\frac{\left (7 \sqrt [6]{b}\right ) \operatorname{Subst}\left (\int \frac{1}{-\frac{1}{3}-x^2} \, dx,x,1+\frac{2 \sqrt [6]{b} x}{\sqrt{3} \sqrt [6]{a}}\right )}{36 \sqrt{3} a^{13/6}}\\ &=-\frac{7}{6 a^2 x}+\frac{1}{6 a x \left (a+b x^6\right )}-\frac{7 \sqrt [6]{b} \tan ^{-1}\left (\frac{\sqrt [6]{b} x}{\sqrt [6]{a}}\right )}{18 a^{13/6}}+\frac{7 \sqrt [6]{b} \tan ^{-1}\left (\sqrt{3}-\frac{2 \sqrt [6]{b} x}{\sqrt [6]{a}}\right )}{36 a^{13/6}}-\frac{7 \sqrt [6]{b} \tan ^{-1}\left (\sqrt{3}+\frac{2 \sqrt [6]{b} x}{\sqrt [6]{a}}\right )}{36 a^{13/6}}-\frac{7 \sqrt [6]{b} \log \left (\sqrt [3]{a}-\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{b} x^2\right )}{24 \sqrt{3} a^{13/6}}+\frac{7 \sqrt [6]{b} \log \left (\sqrt [3]{a}+\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{b} x^2\right )}{24 \sqrt{3} a^{13/6}}\\ \end{align*}
Mathematica [A] time = 0.133043, size = 205, normalized size = 0.84 \[ \frac{-\frac{12 \sqrt [6]{a} b x^5}{a+b x^6}-7 \sqrt{3} \sqrt [6]{b} \log \left (-\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{a}+\sqrt [3]{b} x^2\right )+7 \sqrt{3} \sqrt [6]{b} \log \left (\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{a}+\sqrt [3]{b} x^2\right )-28 \sqrt [6]{b} \tan ^{-1}\left (\frac{\sqrt [6]{b} x}{\sqrt [6]{a}}\right )+14 \sqrt [6]{b} \tan ^{-1}\left (\sqrt{3}-\frac{2 \sqrt [6]{b} x}{\sqrt [6]{a}}\right )-14 \sqrt [6]{b} \tan ^{-1}\left (\frac{2 \sqrt [6]{b} x}{\sqrt [6]{a}}+\sqrt{3}\right )-\frac{72 \sqrt [6]{a}}{x}}{72 a^{13/6}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.036, size = 187, normalized size = 0.8 \begin{align*} -{\frac{1}{{a}^{2}x}}-{\frac{b{x}^{5}}{6\,{a}^{2} \left ( b{x}^{6}+a \right ) }}+{\frac{7\,b\sqrt{3}}{72\,{a}^{3}} \left ({\frac{a}{b}} \right ) ^{{\frac{5}{6}}}\ln \left ({x}^{2}+\sqrt{3}\sqrt [6]{{\frac{a}{b}}}x+\sqrt [3]{{\frac{a}{b}}} \right ) }-{\frac{7}{36\,{a}^{2}}\arctan \left ( 2\,{x{\frac{1}{\sqrt [6]{{\frac{a}{b}}}}}}+\sqrt{3} \right ){\frac{1}{\sqrt [6]{{\frac{a}{b}}}}}}-{\frac{7}{18\,{a}^{2}}\arctan \left ({x{\frac{1}{\sqrt [6]{{\frac{a}{b}}}}}} \right ){\frac{1}{\sqrt [6]{{\frac{a}{b}}}}}}-{\frac{7\,b\sqrt{3}}{72\,{a}^{3}} \left ({\frac{a}{b}} \right ) ^{{\frac{5}{6}}}\ln \left ({x}^{2}-\sqrt{3}\sqrt [6]{{\frac{a}{b}}}x+\sqrt [3]{{\frac{a}{b}}} \right ) }-{\frac{7}{36\,{a}^{2}}\arctan \left ( 2\,{x{\frac{1}{\sqrt [6]{{\frac{a}{b}}}}}}-\sqrt{3} \right ){\frac{1}{\sqrt [6]{{\frac{a}{b}}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.66497, size = 1156, normalized size = 4.74 \begin{align*} -\frac{84 \, b x^{6} - 28 \, \sqrt{3}{\left (a^{2} b x^{7} + a^{3} x\right )} \left (-\frac{b}{a^{13}}\right )^{\frac{1}{6}} \arctan \left (-\frac{2}{3} \, \sqrt{3} a^{2} x \left (-\frac{b}{a^{13}}\right )^{\frac{1}{6}} + \frac{2}{3} \, \sqrt{3} a^{2} \sqrt{-\frac{a^{11} x \left (-\frac{b}{a^{13}}\right )^{\frac{5}{6}} + a^{9} \left (-\frac{b}{a^{13}}\right )^{\frac{2}{3}} - b x^{2}}{b}} \left (-\frac{b}{a^{13}}\right )^{\frac{1}{6}} - \frac{1}{3} \, \sqrt{3}\right ) - 28 \, \sqrt{3}{\left (a^{2} b x^{7} + a^{3} x\right )} \left (-\frac{b}{a^{13}}\right )^{\frac{1}{6}} \arctan \left (-\frac{2}{3} \, \sqrt{3} a^{2} x \left (-\frac{b}{a^{13}}\right )^{\frac{1}{6}} + \frac{2}{3} \, \sqrt{3} a^{2} \sqrt{\frac{a^{11} x \left (-\frac{b}{a^{13}}\right )^{\frac{5}{6}} - a^{9} \left (-\frac{b}{a^{13}}\right )^{\frac{2}{3}} + b x^{2}}{b}} \left (-\frac{b}{a^{13}}\right )^{\frac{1}{6}} + \frac{1}{3} \, \sqrt{3}\right ) + 7 \,{\left (a^{2} b x^{7} + a^{3} x\right )} \left (-\frac{b}{a^{13}}\right )^{\frac{1}{6}} \log \left (16807 \, a^{11} x \left (-\frac{b}{a^{13}}\right )^{\frac{5}{6}} - 16807 \, a^{9} \left (-\frac{b}{a^{13}}\right )^{\frac{2}{3}} + 16807 \, b x^{2}\right ) - 7 \,{\left (a^{2} b x^{7} + a^{3} x\right )} \left (-\frac{b}{a^{13}}\right )^{\frac{1}{6}} \log \left (-16807 \, a^{11} x \left (-\frac{b}{a^{13}}\right )^{\frac{5}{6}} - 16807 \, a^{9} \left (-\frac{b}{a^{13}}\right )^{\frac{2}{3}} + 16807 \, b x^{2}\right ) + 14 \,{\left (a^{2} b x^{7} + a^{3} x\right )} \left (-\frac{b}{a^{13}}\right )^{\frac{1}{6}} \log \left (16807 \, a^{11} \left (-\frac{b}{a^{13}}\right )^{\frac{5}{6}} + 16807 \, b x\right ) - 14 \,{\left (a^{2} b x^{7} + a^{3} x\right )} \left (-\frac{b}{a^{13}}\right )^{\frac{1}{6}} \log \left (-16807 \, a^{11} \left (-\frac{b}{a^{13}}\right )^{\frac{5}{6}} + 16807 \, b x\right ) + 72 \, a}{72 \,{\left (a^{2} b x^{7} + a^{3} x\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 2.31615, size = 54, normalized size = 0.22 \begin{align*} - \frac{6 a + 7 b x^{6}}{6 a^{3} x + 6 a^{2} b x^{7}} + \operatorname{RootSum}{\left (2176782336 t^{6} a^{13} + 117649 b, \left ( t \mapsto t \log{\left (- \frac{60466176 t^{5} a^{11}}{16807 b} + x \right )} \right )\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.26182, size = 292, normalized size = 1.2 \begin{align*} -\frac{7 \, b x^{6} + 6 \, a}{6 \,{\left (b x^{7} + a x\right )} a^{2}} + \frac{7 \, \sqrt{3} \left (a b^{5}\right )^{\frac{5}{6}} \log \left (x^{2} + \sqrt{3} x \left (\frac{a}{b}\right )^{\frac{1}{6}} + \left (\frac{a}{b}\right )^{\frac{1}{3}}\right )}{72 \, a^{3} b^{4}} - \frac{7 \, \sqrt{3} \left (a b^{5}\right )^{\frac{5}{6}} \log \left (x^{2} - \sqrt{3} x \left (\frac{a}{b}\right )^{\frac{1}{6}} + \left (\frac{a}{b}\right )^{\frac{1}{3}}\right )}{72 \, a^{3} b^{4}} - \frac{7 \, \left (a b^{5}\right )^{\frac{5}{6}} \arctan \left (\frac{2 \, x + \sqrt{3} \left (\frac{a}{b}\right )^{\frac{1}{6}}}{\left (\frac{a}{b}\right )^{\frac{1}{6}}}\right )}{36 \, a^{3} b^{4}} - \frac{7 \, \left (a b^{5}\right )^{\frac{5}{6}} \arctan \left (\frac{2 \, x - \sqrt{3} \left (\frac{a}{b}\right )^{\frac{1}{6}}}{\left (\frac{a}{b}\right )^{\frac{1}{6}}}\right )}{36 \, a^{3} b^{4}} - \frac{7 \, \left (a b^{5}\right )^{\frac{5}{6}} \arctan \left (\frac{x}{\left (\frac{a}{b}\right )^{\frac{1}{6}}}\right )}{18 \, a^{3} b^{4}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]